<%@page import="utils.Printer"%>
<%@ page language="java" contentType="text/html; charset=windows-1255"
    pageEncoding="windows-1255"%>
<%	
if (request.getSession(false) == null || request.getSession(false).getAttribute("username") == null){
	response.sendError(HttpServletResponse.SC_FORBIDDEN, "Please login first");
	return;
}
		
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1255" />
<link href="style.css" rel="stylesheet" type="text/css" />
<% String username = request.getSession(false).getAttribute("username").toString(); %>
<title><%= username + "'s Course List" %></title>
</head>
<body onload="setPage('user_manage_courses')">
<%@ include file="WEB-INF/private/body_wrapper_header.html" %>
<% String link = request.getSession(false).getAttribute("type").toString().equals("admin") ? "manage_courses.jsp" : "user_manage_courses.jsp"; %>
<% String courseName = request.getParameter("course_name"); %>
<h1> <%= courseName %></h1>
<% Printer.printCourseDescription(getServletContext(), out, courseName); %>

<br /><br />
<% Printer.printCourseSessionsUser(getServletContext(), out, courseName); %>
<br /><br />


<%@ include file="WEB-INF/private/body_wrapper_footer.html" %>
</body>
</html>